package com.educhains.module.activity.persist.dao;


import com.educhains.module.activity.vo.mb_model.Activity;
import com.educhains.module.activity.vo.mb_model.ActivityJoin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityDAO {

    Activity selectByPrimaryKey(String activityId);

    int insertSelective(Activity record);

    List<Activity> selectActivityList();

    List<Activity> showByPage(int start, int end);

    List<Activity> selectActivityListLimit(@Param("activityNum") int activityNum, @Param("type")String type);

    List<ActivityJoin> selecetActivityJoinListLimitByAID(String activityId, int num);

    List<ActivityJoin> selecetActivityJoinListLimitByUID(String userId, int num);

    int insertActivityJoin(ActivityJoin record);

    List<Activity> getActivityListByUserIdWithLimit( String userId,  int limit);
}
